package com.xfcycle.zebrabikegp.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * 该广播接收者负责接收 当设备向手机发数据时，手机接收到数据后发出的 广播
 * Created by xFcycle on 2017/5/11.
 */

public class ExceptionFromBleBroadcastReceiver extends BroadcastReceiver{

    @Override
    public void onReceive(Context context, Intent intent) {
        try {
            Toast.makeText(context.getApplicationContext(), intent.getStringExtra("exception"), Toast.LENGTH_LONG).show();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
